//
//  UIFont+Device_iPhoneModel.m
//  WebViewModifyFontSizeDemo
//
//  Created by Binky Lee on 15/12/22.
//  Copyright © 2015年 Binky Lee. All rights reserved.
//

#import "UIFont+Device_iPhoneModel.h"
#import "UIDevice+IPhoneModel.h"

@implementation UIFont (Device_iPhoneModel)

+(UIFont*)fontSize:(NSInteger)fontSize{
    switch ([UIDevice iPhoneModel]) {
        case iPhone4: {
            return [UIFont systemFontOfSize:fontSize];
        }
        case iPhone5: {
            
            return [UIFont systemFontOfSize:fontSize];
        }
        case iPhone6: {
            
            return [UIFont systemFontOfSize:fontSize + 1];
        }
        case iPhone6Plus: {
            return [UIFont systemFontOfSize:fontSize + 2];
            break;
        }
        case Unknown: {
            return [UIFont systemFontOfSize:fontSize];
        }
    }
}

@end
